.dag-layout{
  height: 100%;
  display: flex;
  background: #000;
  width: 100%;
  overflow: hidden;
}
body{
  background-color: red;
}

#stencil {
  width: 60px;
  height: calc(100% - 42px);
  position: absolute;
  left: 0px;
  top: 42px;
  background: #333333;
  z-index: 2;
  // border-right: 1px solid #dfe3e8;
  foreignObject{
    width: 32px;
    height: 32px;
    cursor: move;
    .self-defined{
      width: 32px;
      height: 32px;
      background: none;
      .self-defined-icon{
        margin-top: 0;
      }
    }
    .self-defined-word{
      display: none;
    }
  }
  rect{
    display: none;
  }
  .x6-cell.x6-node.x6-node-immovable{
    // display: none;
    width: 60px;
    height: 32px;
    display: block;
    float: left;
  }
}
.graph-container-box {
  width: calc(100% - 180px);
  height: 100%;
  flex: 1;
  margin-right: 1px;
  .tool-bar{
    background: #3D3D3D;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid #1A1A1A;
    .logo{
      overflow: hidden;
      position: absolute;
      left: 10px;
      top: 7px;
      img{
        display: block;
        height: 28px;
        // margin: 7px 0 0 10px;
      }
    }
    .graph-handle{
      display: flex;
      width: 450px;
      justify-content: space-around;
      margin: 0 auto;
      li{
        background-size: 24px 24px;
        cursor: pointer;
        background-position: center center;
        width: 40px;
        height: 40px;
        background-repeat: no-repeat;
        &:hover{
          background-color: #000;
        }
      }
      .graph-handle-btn1{
        background-image: url(~@/assets/img/graph-handle-btn1.png);
      }
      .graph-handle-btn2{
        background-image: url(~@/assets/img/graph-handle-btn2.png);
      }
      .graph-handle-btn3{
        background-image: url(~@/assets/img/graph-handle-btn3.png);
      }
      .graph-handle-btn4{
        background-image: url(~@/assets/img/graph-handle-btn4.png);
      }
      .graph-handle-btn5{
        background-image: url(~@/assets/img/graph-handle-btn5.png);
      }
      .graph-handle-btn6{
        background-image: url(~@/assets/img/graph-handle-btn6.png);
      }
      .graph-handle-btn7{
        background-image: url(~@/assets/img/graph-handle-btn7.png);
      }
      .graph-handle-btn8{
        background-image: url(~@/assets/img/graph-handle-btn8.png);
      }
      .graph-handle-btn9{
        background-image: url(~@/assets/img/graph-handle-btn9.png);
      }
    }
    .run-btn{
      position: absolute;
      right: 24px;
      top: 5px;
    }
  }
  #graph-container{
    width: 100%;
    height: calc(100% - 40px);
    .x6-graph-background{
      background: url(~@/assets/img/mosaic.png) repeat;
    }
  }
}
#container {
  width: 320px;
  height: 100%;
  background: #282828;
  box-sizing: border-box;
  // border-left: 1px solid #1D1D1D;
  .container-title{
    color: #E5E5E5;
    line-height: 40px;
    padding-left: 42px;
    font-weight: normal;
    background: url(~@/assets/img/container-title-icon.png) no-repeat  14px center #3D3D3D;
    background-size: 18px 18px;
    font-size: 14px;
  }
  .container-hint{
    padding-top: 20px;
    color: #FFF;
    text-align: center;
  }
}
.x6-widget-stencil {
  background: #333333;
}
.x6-widget-stencil-title {
  // background-color: #fff;
  display: none;
}
.x6-widget-stencil-group-title {
  display: none;
  // background-color: #fff !important;
}
// .x6-widget-stencil-group{
//   margin-top: 40px;
// }
.x6-widget-transform {
  margin: -1px 0 0 -1px;
  padding: 0px;
  border: 1px solid #239edd;
}
.x6-widget-transform > div {
  border: 1px solid #239edd;
}
.x6-widget-transform > div:hover {
  background-color: #3dafe4;
}
.x6-widget-transform-active-handle {
  background-color: #3dafe4;
}
.x6-widget-transform-resize {
  border-radius: 0;
}
.x6-widget-selection-inner {
  border: 1px solid #239edd;
}
.x6-widget-selection-box {
  opacity: 0;
}

.self-defined{
  display: block;
  width: 112px;
  height: 70px;
  background: linear-gradient(180deg, #585858 0%, #45474A 100%);
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.302);
  border-radius: 4px;
  border: 1px solid #616161;
  .self-defined-icon{
    width: 32px;
    height: 32px;
    display: block;
    margin: 7px auto 0;
  }
  .self-defined-word{
    text-align: center;
    color: #AAAAAA;
  }
}
.x6-node.x6-node-selected{
  .self-defined{
    background: linear-gradient(180deg, #759467 0%, #548640 100%);
  }
  .self-defined-word{
    color: #FFF;
  }
}
.widget{
  overflow: hidden;
  padding: 0 14px;
  width: 100%;
  .widget-white-word{
    color: #FFF;
  }
  .widget-title{
    color: #FFF;
    float: left;
    width: 120px;
  }
  .val{
    float: left;
    width: 160px;
    .el-input__inner{
      background: #1D1D1D;
      color: #FFF;
      border-color: rgba(0, 0, 0, 0);
    }
  }
}
